package com.ayitubie.refuelweb.config.interceptor.loginUserInterceptor;

public class UserContext {
    private static ThreadLocal<LoginUser> userHolder = new ThreadLocal<LoginUser>();
    public static void setUser(LoginUser loginUser) {
        userHolder.set(loginUser);
    }

    public static LoginUser getUser() {
        return userHolder.get();
    }
    public void unload() {
        userHolder.remove(); // Compliant
    }
}
